\hypertarget{helpers_8h}{\section{helpers.\-h File Reference}
\label{helpers_8h}\index{helpers.\-h@{helpers.\-h}}
}
{\ttfamily \#include $<$vector$>$}\\*
{\ttfamily \#include $<$string$>$}\\*
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
vector$<$ string $>$ \hyperlink{helpers_8h_a0255cce4a8e4b9a752813e281ff3e54b}{Split\-By\-Delimiter} (string str, string delimiters)
\item 
string \hyperlink{helpers_8h_afa8e9f8bdfd9b1a647c9fa1c30b3d9c3}{Strim} (string \&s)
\item 
bool \hyperlink{helpers_8h_a20c1e63b00d83d3c40bc4308404cd969}{Is\-A\-Number} (string s)
\item 
bool \hyperlink{helpers_8h_a7848d43f9e5ac8c8b2fccbb265ed01e5}{Is\-A\-Variable} (string s)
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{helpers_8h_a20c1e63b00d83d3c40bc4308404cd969}{\index{helpers.\-h@{helpers.\-h}!Is\-A\-Number@{Is\-A\-Number}}
\index{Is\-A\-Number@{Is\-A\-Number}!helpers.h@{helpers.\-h}}
\subsubsection[{Is\-A\-Number}]{\setlength{\rightskip}{0pt plus 5cm}bool Is\-A\-Number (
\begin{DoxyParamCaption}
\item[{string}]{s}
\end{DoxyParamCaption}
)}}\label{helpers_8h_a20c1e63b00d83d3c40bc4308404cd969}
This method tells if a string is a number or not. 
\begin{DoxyParams}{Parameters}
{\em the} & string to be checked. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if the string had a number, false otherwise. Only integers and numbers with a point are considered as numbers. 
\end{DoxyReturn}
\hypertarget{helpers_8h_a7848d43f9e5ac8c8b2fccbb265ed01e5}{\index{helpers.\-h@{helpers.\-h}!Is\-A\-Variable@{Is\-A\-Variable}}
\index{Is\-A\-Variable@{Is\-A\-Variable}!helpers.h@{helpers.\-h}}
\subsubsection[{Is\-A\-Variable}]{\setlength{\rightskip}{0pt plus 5cm}bool Is\-A\-Variable (
\begin{DoxyParamCaption}
\item[{string}]{s}
\end{DoxyParamCaption}
)}}\label{helpers_8h_a7848d43f9e5ac8c8b2fccbb265ed01e5}
This method tells if a string is a variable name or not. 
\begin{DoxyParams}{Parameters}
{\em the} & string to be checked. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if the string had a variab le or false otherwise. A variable is a string consisting of alphabetic characters followed by any number of digits. 
\end{DoxyReturn}
\hypertarget{helpers_8h_a0255cce4a8e4b9a752813e281ff3e54b}{\index{helpers.\-h@{helpers.\-h}!Split\-By\-Delimiter@{Split\-By\-Delimiter}}
\index{Split\-By\-Delimiter@{Split\-By\-Delimiter}!helpers.h@{helpers.\-h}}
\subsubsection[{Split\-By\-Delimiter}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$string$>$ Split\-By\-Delimiter (
\begin{DoxyParamCaption}
\item[{string}]{str, }
\item[{string}]{delimiters}
\end{DoxyParamCaption}
)}}\label{helpers_8h_a0255cce4a8e4b9a752813e281ff3e54b}
This method splits a string over a set of delimiters. 
\begin{DoxyParams}{Parameters}
{\em str} & the string to be splitted. \\
\hline
{\em delimiters} & the string of the characters that will split the string. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a vector of the strings after splitting. For example if a string \char`\"{}4 + 3 $\ast$ 2 = 6\char`\"{} is splitted with delimiters \char`\"{}+$\ast$\char`\"{}, then the resulting vector would be\-: \{\char`\"{}4 \char`\"{}, \char`\"{}+\char`\"{}, \char`\"{} 3 \char`\"{}, \char`\"{}$\ast$\char`\"{}, \char`\"{} 2 = 6\char`\"{}\}. 
\end{DoxyReturn}
\hypertarget{helpers_8h_afa8e9f8bdfd9b1a647c9fa1c30b3d9c3}{\index{helpers.\-h@{helpers.\-h}!Strim@{Strim}}
\index{Strim@{Strim}!helpers.h@{helpers.\-h}}
\subsubsection[{Strim}]{\setlength{\rightskip}{0pt plus 5cm}string Strim (
\begin{DoxyParamCaption}
\item[{string \&}]{s}
\end{DoxyParamCaption}
)}}\label{helpers_8h_afa8e9f8bdfd9b1a647c9fa1c30b3d9c3}
This method just trims a string. 
\begin{DoxyParams}{Parameters}
{\em the} & string to be trimmed. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the same string after trimming. For example if the original string is \char`\"{} aa   \char`\"{}, then the result is \char`\"{}aa\char`\"{}. 
\end{DoxyReturn}
